# encoding=utf-8

"""ExceptionSegCommon
    - for system run time exception
"""


class SegSystemBaseException(Exception):
    def __init__(self, *args):
        self.args = args

    def __str__(self):
        return self.args


class FormatFailException(SegSystemBaseException):
    def __init__(self, message: str = '', *args):
        base_message = "upload file format change error: \n"
        self.message = base_message + message

    def __str__(self):
        return self.message
